package com.ray.springbootspringdata.web;

import com.ray.springbootspringdata.domain.User;
import com.ray.springbootspringdata.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * User: Ray.Shaw <p />
 * Time: 2019/10/30 18:13  <p />
 * Version: V1.0  <p />
 * Description:  <p />
 */
@RestController
@RequestMapping("/t")
public class TestController {
    @Autowired
    private UserService userService;

    @GetMapping
    public List<User> list() {
        return userService.selectBy("x");
    }
}
